class WannabeFunction {
  // Define the call() method
  String call(String a, String b, String c) {
    return '$a $b $c!';
  }
}
class Counter {
  int _count = 0;

  // Define the call() method
  int call() {
    _count++;
    return _count;
  }
}
void main() {
  var wf = WannabeFunction(); // Create an instance of WannabeFunction

  // Call the instance like a function
  var result = wf('Hello', 'Dart', 'World');

  print(result); // Output: Hello Dart World!


   var counter = Counter();

  print(counter()); // Output: 1
  print(counter()); // Output: 2
  print(counter()); // Output: 3
}